Debian Codegraph @

css/impress-common.css

raw
1 /* impress.js doesn't require any particular CSS file.
2 Each author should create their own, to achieve the visual style they want.
3 Yet in practice many plugins will not do anything useful without CSS. (See for example mouse-timeout plugin.)
4 This file contains sample CSS that you may want to use in your presentation.
5 It is focused on plugin functionality, not the visual style of your presentation. */
6
7 /* Using the substep plugin, hide bullet points at first, then show them one by one. */
8 #impress .step .substep {
9 opacity: 0;
10 }
11
12 #impress .step .substep.substep-visible {
13 opacity: 1;
14 transition: opacity 1s;
15 }
16 /*
17 Speaker notes allow you to write comments within the steps, that will not
18 be displayed as part of the presentation. However, they will be picked up
19 and displayed by impressConsole.js when you press P.
20 */
21 .notes {
22 display: none;
23 }
24
25 /* Toolbar plugin */
26 .impress-enabled div#impress-toolbar {
27 position: fixed;
28 right: 1px;
29 bottom: 1px;
30 opacity: 0.6;
31 z-index: 10;
32 }
33 .impress-enabled div#impress-toolbar > span {
34 margin-right: 10px;
35 }
36 .impress-enabled div#impress-toolbar.impress-toolbar-show {
37 display: block;
38 }
39 .impress-enabled div#impress-toolbar.impress-toolbar-hide {
40 display: none;
41 }
42
43 /* Progress bar */
44 .impress-progress {
45 position: absolute;
46 left: 59px;
47 bottom: 1px;
48 text-align: left;
49 font-size: 10pt;
50 opacity: 0.6;
51 }
52 .impress-enabled .impress-progressbar {
53 position: absolute;
54 right: 318px;
55 bottom: 1px;
56 left: 118px;
57 border-radius: 7px;
58 border: 2px solid rgba(100, 100, 100, 0.2);
59 }
60 .impress-progressbar {
61 right: 118px;
62 }
63 .impress-progressbar DIV {
64 width: 0;
65 height: 2px;
66 border-radius: 5px;
67 background: rgba(75, 75, 75, 0.4);
68 transition: width 1s linear;
69 }
70 .impress-enabled .impress-progress {
71 position: absolute;
72 left: 59px;
73 bottom: 1px;
74 text-align: left;
75 opacity: 0.6;
76 }
77 .impress-enabled #impress-help {
78 background: none repeat scroll 0 0 rgba(0, 0, 0, 0.5);
79 color: #EEEEEE;
80 font-size: 80%;
81 position: fixed;
82 left: 2em;
83 bottom: 2em;
84 width: 24em;
85 border-radius: 1em;
86 padding: 1em;
87 text-align: center;
88 z-index: 100;
89 font-family: Verdana, Arial, Sans;
90 }
91 .impress-enabled #impress-help td {
92 padding-left: 1em;
93 padding-right: 1em;
94 }
95
96 /*
97 With help from the mouse-timeout plugin, we can hide the toolbar and
98 have it show only when you move/click/touch the mouse.
99 */
100 body.impress-mouse-timeout div#impress-toolbar {
101 display: none;
102 }
103
104 /*
105 In fact, we can hide the mouse cursor itself too, when mouse isn't used.
106 */
107 body.impress-mouse-timeout {
108 cursor: none;
109 }
110
111
112 /*
113 And as the last thing there is a workaround for quite strange bug.
114 It happens a lot in Chrome. I don't remember if I've seen it in Firefox.
115
116 Sometimes the element positioned in 3D (especially when it's moved back
117 along Z axis) is not clickable, because it falls 'behind' the <body>
118 element.
119
120 To prevent this, I decided to make <body> non clickable by setting
121 pointer-events property to `none` value.
122 Value if this property is inherited, so to make everything else clickable
123 I bring it back on the #impress element.
124
125 If you want to know more about `pointer-events` here are some docs:
126 https://developer.mozilla.org/en/CSS/pointer-events
127
128 There is one very important thing to notice about this workaround - it makes
129 everything 'unclickable' except what's in #impress element.
130
131 So use it wisely ... or don't use at all.
132 */
133
134 .impress-enabled { pointer-events: none }
135 .impress-enabled #impress { pointer-events: auto }
136
137 /*If you disable pointer-events, you need to re-enable them for the toolbar.
138 And the speaker console while at it.*/
139
140 .impress-enabled #impress-toolbar { pointer-events: auto }
141 .impress-enabled #impress-console-button { pointer-events: auto }
142
143
144 /*
145 There is one funny thing I just realized.
146
147 Thanks to this workaround above everything except #impress element is invisible
148 for click events. That means that the hint element is also not clickable.
149 So basically all of this transforms and delayed transitions trickery was probably
150 not needed at all...
151
152 But it was fun to learn about it, wasn't it?
153 */
154
155